import { useRef } from "react";
function SmsLogin() { 

    const mobile=useRef(null);
    const submit = () => { 
        console.log("登录",mobile.current.value)
    }
  
    return (

        <>
        
            <div  className="login-body">
                <div>手机号:<input ref={mobile}></input></div>
                <div>验证码:<input></input></div>
                <div><button onClick={submit}>登录</button></div>
              </div>
        </>
    )
    
}

export default SmsLogin;